#!/bin/bash

echo "========================================"
echo "正在启动应用..."
echo "========================================"
echo ""

if [ ! -f "target/demo-1.0.0.jar" ]; then
    echo "错误：找不到 JAR 文件！"
    echo "请先运行 ./package.sh 打包项目"
    echo ""
    exit 1
fi

echo "应用将在 http://localhost:8080 启动"
echo "便签页面：http://localhost:8080/sticky-notes"
echo ""
echo "按 Ctrl+C 停止应用"
echo ""

java -jar target/demo-1.0.0.jar

